//
//  DBManager.h
//  Nicejinux.NET
//
//  Created by Nicejinux on 12. 3. 27..
//  Copyright (c) 2012년 Nicejinux.NET. All rights reserved.
// 

#import <Foundation/Foundation.h>
#import <sqlite3.h>

@interface DBManager : NSObject

+ (DBManager*)sharedInstance;

- (BOOL)executeQuery:(NSString*)SQLQuery;
- (int)executeCountQuery:(NSString*)SQLQuery;
- (NSMutableArray*)executeSelectQuery:(NSString*)SQLQuery;

- (sqlite3*)getDatabaseObject;

- (NSArray *)columnTypesForStatement: (sqlite3_stmt *) statement;
- (NSArray *)columnNamesForStatement: (sqlite3_stmt *) statement;
- (void)copyValuesFromStatement: (sqlite3_stmt *) statement toRow: (id) row columnTypes: (NSArray *) columnTypes columnNames: (NSArray *) columnNames;
- (void)initDB;
- (void)dropDB;
@end
